package com.tw.modules.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author maxiaodong
 * @since 2018-04-07
 */
@TableName("tw_plan")
public class Plan extends Model<Plan> {

    private static final long serialVersionUID = 1L;

	@TableField("p_phone")
	private Long pPhone;
	@TableField("p_duration")
	private Double pDuration;
	@TableField("p_title")
	private String pTitle;
	@TableId(value="p_id", type= IdType.AUTO)
	private Integer pId;


	public Long getpPhone() {
		return pPhone;
	}

	public void setpPhone(Long pPhone) {
		this.pPhone = pPhone;
	}

	public Double getpDuration() {
		return pDuration;
	}

	public void setpDuration(Double pDuration) {
		this.pDuration = pDuration;
	}

	public String getpTitle() {
		return pTitle;
	}

	public void setpTitle(String pTitle) {
		this.pTitle = pTitle;
	}

	public Integer getpId() {
		return pId;
	}

	public void setpId(Integer pId) {
		this.pId = pId;
	}

	@Override
	protected Serializable pkVal() {
		return this.pId;
	}

	@Override
	public String toString() {
		return "Plan{" +
			", pPhone=" + pPhone +
			", pDuration=" + pDuration +
			", pTitle=" + pTitle +
			", pId=" + pId +
			"}";
	}
}
